package com.jerei.plugin.job;

import com.jerei.plugin.service.IKeepService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by sunfeihu on 2016/12/1.
 */
public class JobTask {

    @Autowired
    private IKeepService iKeepService;

    public void service() {
        Boolean keeped = iKeepService.keep();
        if (keeped) {
            System.out.println("保持成功");
        } else {
            System.out.println("保持失败");
        }
    }

}
